package ysf.com;

import org.apache.commons.lang3.time.DateFormatUtils;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.SimpleDateFormat;

/**
 * @author ysf
 * @date 2021/6/2 22:49
 */
public class Demo {

    public static void main(String[] args) {

        /*BigDecimal bigDecimal = new BigDecimal(10.00);
        BigDecimal bigDecimals = new BigDecimal(3.00);

        BigDecimal divide = bigDecimal.divide(bigDecimals,1);
        System.out.println(divide);*/

        BigDecimal salesByCurrentWeek =new BigDecimal(25615.59);

        BigDecimal salesByLastWeek = new BigDecimal(23348.07);

        BigDecimal divides = salesByLastWeek.divide(salesByCurrentWeek, 2, RoundingMode.HALF_UP);
        System.out.println(divides);





    }
}
